package com.canal.admin.service;

import com.canal.admin.exception.BuzException;
import com.canal.admin.transfer.req.channel.ChannelAddReq;
import com.canal.admin.transfer.req.channel.ChannelCondition;
import com.canal.admin.transfer.req.channel.ChannelUpReq;
import com.canal.admin.transfer.resp.PageResp;
import com.canal.admin.transfer.resp.canal.ChannelListResp;
import com.canal.admin.transfer.resp.canal.ChannelResp;

/**
 * @author yangbo
 * @date 2020-06-23 14:27
 */
public interface ZcolChannelService {

    /**
     * 渠道列表查询
     * @param condition
     * @return
     */
    PageResp<ChannelListResp> channelList(ChannelCondition condition);

    /**
     * 新增渠道
     * @param addReq
     * @throws BuzException
     */
    void addChannel(ChannelAddReq addReq) throws BuzException;

    /**
     * 删除
     * @param id
     * @throws BuzException
     */
    void delChannel(Integer id) throws BuzException;

    /**
     * 明细
     * @param id
     * @return
     * @throws BuzException
     */
    ChannelResp detail(Integer id);

    /**
     * 编辑
     * @param upReq
     * @throws BuzException
     */
    void update(ChannelUpReq upReq) throws BuzException;

    /**
     * 删除
     * @param id
     * @throws BuzException
     */
    void resetPwd(Integer id) throws BuzException;
}
